package com.hutu.erp.catalog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品的属性对象 catalog_product_product_attribute_mapping
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class AttributeMapping extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品的属性id */
    private Long mappingId;

    /** 属性id */
    @Excel(name = "属性id")
    private Long productAttributeId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long productId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String textPrompt;

    /** 属性类型（DropdownList = 1,RadioList = 2,Checkboxes = 3,TextBox = 4,MultilineTextbox = 10,Datepicker = 20,FileUpload = 30,ColorSquares = 40, ImageSquares = 45,ReadonlyCheckboxes = 50） */
    @Excel(name = "属性类型", readConverterExp = "D=ropdownList,==,1=,RadioList,==,2=,Checkboxes,==,3=,TextBox,==,4=,MultilineTextbox,==,1=0,Datepicker,==,2=0,FileUpload,==,3=0,ColorSquares,==,4=0,,I=mageSquares,==,4=5,ReadonlyCheckboxes,==,5=0")
    private Integer attributeControlType;

    /** 必填标志（1代表存在 0代表删除） */
    @Excel(name = "必填标志", readConverterExp = "1=代表存在,0=代表删除")
    private Integer isRequired;

    /** 默认值 */
    @Excel(name = "默认值")
    private String defaultValue;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private Integer deleted;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer displayOrder;

    public void setMappingId(Long mappingId) 
    {
        this.mappingId = mappingId;
    }

    public Long getMappingId() 
    {
        return mappingId;
    }
    public void setProductAttributeId(Long productAttributeId) 
    {
        this.productAttributeId = productAttributeId;
    }

    public Long getProductAttributeId() 
    {
        return productAttributeId;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setTextPrompt(String textPrompt) 
    {
        this.textPrompt = textPrompt;
    }

    public String getTextPrompt() 
    {
        return textPrompt;
    }
    public void setAttributeControlType(Integer attributeControlType) 
    {
        this.attributeControlType = attributeControlType;
    }

    public Integer getAttributeControlType() 
    {
        return attributeControlType;
    }
    public void setIsRequired(Integer isRequired) 
    {
        this.isRequired = isRequired;
    }

    public Integer getIsRequired() 
    {
        return isRequired;
    }
    public void setDefaultValue(String defaultValue) 
    {
        this.defaultValue = defaultValue;
    }

    public String getDefaultValue() 
    {
        return defaultValue;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setDisplayOrder(Integer displayOrder) 
    {
        this.displayOrder = displayOrder;
    }

    public Integer getDisplayOrder() 
    {
        return displayOrder;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mappingId", getMappingId())
            .append("productAttributeId", getProductAttributeId())
            .append("productId", getProductId())
            .append("textPrompt", getTextPrompt())
            .append("attributeControlType", getAttributeControlType())
            .append("isRequired", getIsRequired())
            .append("defaultValue", getDefaultValue())
            .append("deleted", getDeleted())
            .append("displayOrder", getDisplayOrder())
            .toString();
    }
}
